<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'FullName'); ?>
		<?php echo $form->textField($model,'FullName',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'FullName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Password'); ?>
		<?php echo $form->passwordField($model,'Password',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'Password'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Email'); ?>
		<?php echo $form->textField($model,'Email',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'Email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SuperiorEmail'); ?>
		<?php echo $form->textField($model,'SuperiorEmail',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'SuperiorEmail'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'GroupId'); ?>
		<?php echo $form->textField($model,'GroupId'); ?>
		<?php echo $form->error($model,'GroupId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DepartmenId'); ?>
		<?php echo $form->textField($model,'DepartmenId'); ?>
		<?php echo $form->error($model,'DepartmenId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Enable'); ?>
		<?php echo $form->checkBox($model,'Enable'); ?>
		<?php echo $form->error($model,'Enable'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CreateAt'); ?>
		<?php echo $form->textField($model,'CreateAt'); ?>
		<?php echo $form->error($model,'CreateAt'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'UpdateAt'); ?>
		<?php echo $form->textField($model,'UpdateAt'); ?>
		<?php echo $form->error($model,'UpdateAt'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'IsSuperAdmin'); ?>
		<?php echo $form->checkBox($model,'IsSuperAdmin'); ?>
		<?php echo $form->error($model,'IsSuperAdmin'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Role'); ?>
		<?php echo $form->textField($model,'Role',array('size'=>60,'maxlength'=>1024)); ?>
		<?php echo $form->error($model,'Role'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DeleteFlg'); ?>
		<?php echo $form->checkBox($model,'DeleteFlg'); ?>
		<?php echo $form->error($model,'DeleteFlg'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Salt'); ?>
		<?php echo $form->textField($model,'Salt',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'Salt'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CompanyId'); ?>
		<?php echo $form->textField($model,'CompanyId',array('size'=>19,'maxlength'=>19)); ?>
		<?php echo $form->error($model,'CompanyId'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->